import {
  CULTIVATION_SKILL_ITEM_DATA,
  CULTIVATION_SKILL_ITEM_ID,
} from './cultivation-skill';
import { EQUIPMENT_ITEM_DATA, EQUIPMENT_ITEM_ID } from './equipment';
import { MATERIAL_ITEM_DATA, MATERIAL_ITEM_ID } from './material';
import type {
  CultivationSkillItemConfig,
  EquipmentItemConfig,
  MaterialItemConfig,
} from './type';

export const ITEM_ID = {
  ...CULTIVATION_SKILL_ITEM_ID,
  ...EQUIPMENT_ITEM_ID,
  ...MATERIAL_ITEM_ID,
} as const;

export type ItemId = (typeof ITEM_ID)[keyof typeof ITEM_ID];

export type ItemConfig =
  | CultivationSkillItemConfig
  | EquipmentItemConfig
  | MaterialItemConfig;

export const ITEM_DATA: ItemConfig[] = [
  ...CULTIVATION_SKILL_ITEM_DATA,
  ...EQUIPMENT_ITEM_DATA,
  ...MATERIAL_ITEM_DATA,
];
